package com.ssm.entity;

import com.alibaba.fastjson.annotation.JSONField;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Chair {
    private Integer chId;

    private Integer tId;

    private Integer sId;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private Date chDate;

    private Long chPrice;

    private Teacher teacher;

    private Student student;
    private String chSrc;

    public String getChSrc() {
        return chSrc;
    }

    public void setChSrc(String chSrc) {
        this.chSrc = chSrc;
    }

    public Integer getChId() {
        return chId;
    }

    public void setChId(Integer chId) {
        this.chId = chId;
    }

    public Integer gettId() {
        return tId;
    }

    public void settId(Integer tId) {
        this.tId = tId;
    }

    public Integer getsId() {
        return sId;
    }

    public void setsId(Integer sId) {
        this.sId = sId;
    }

    public Date getChDate() {
        return chDate;
    }

    public void setChDate(Date chDate) {
        this.chDate = chDate;
    }

    public Long getChPrice() {
        return chPrice;
    }

    public void setChPrice(Long chPrice) {
        this.chPrice = chPrice;
    }

    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }

    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

    @Override
    public String toString() {
        return "Chair{" +
                "chId=" + chId +
                ", tId=" + tId +
                ", sId=" + sId +
                ", chDate=" + chDate +
                ", chPrice=" + chPrice +
                ", teacher=" + teacher +
                ", student=" + student +
                ", chSrc='" + chSrc + '\'' +
                '}';
    }
}